package com.example.smart.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "轮播图")
public class Banner {
    @Schema(description = "轮播图编号")
    @TableId(type = IdType.AUTO)
    private Integer bannerId;
    @Schema(description = "轮播图名称")
    private String bannerName;
    @Schema(description = "轮播图图片")
    private String bannerImage;
    @Schema(description = "目标种类（商品:1，代办:0，其他:2）")
    private Integer targetType;
    @Schema(description = "目标编号")
    private Integer targetId;
    @Schema(description = "轮播图状态（0：正常，1：停用）")
    private Integer targetStatus;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    private Integer targetIsdelete;
}
